package com.kwd.news.po;

import com.alibaba.fastjson.annotation.JSONType;

@JSONType(orders = {"areaCode", "areaName"})
public class City implements Comparable<City> {

    private String areaCode;

    private String areaName;

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    @Override
    public int compareTo(City o) {
        int i = Integer.parseInt(this.getAreaCode()) - Integer.parseInt(o.getAreaCode());//先按照年龄排序
        return i;
    }
}
